package com.cavy.platform.server.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Created by tangxu on 18-7-10.
 */
@Data
@Accessors(chain = true)
public class PluginRepositorySetting {
    public static final transient String LOCAL_REPOSITORY_CODE = "local";
    private String name;
    private String code;
    private String url;
    private String branchName = "master";

    @JsonIgnore
    public boolean isLocal() {
        return LOCAL_REPOSITORY_CODE.equals(code);
    }
}
